feat: Add basic JS/Jest basic support#86
Merged
cbasitodx merged 15 commits intoJun 22, 2026
Conversation
anmarchenko
requested changes
Jun 17, 2026
anmarchenko
left a comment
Member
There was a problem hiding this comment.
I did a first pass, it has the right direction and there are 2 main improvement areas:
- I am not convinced that we really need exclude pattern for frameworks - it makes the implementation more complex than needed
- somehow there are a lot of duplicated code in the framework.go that repeats what we already have and call in
discovery.gopackage
…est_basic_capabilities_clean
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 6db0424 | Docs | Datadog PR Page | Give us feedback! |
…nside the Framework interface
…iscovery and remove Jest's built-in exclude list, so generated directories remain discoverable unless users exclude them explicitly.
anmarchenko
reviewed
Jun 19, 2026
anmarchenko
reviewed
Jun 19, 2026
anmarchenko
reviewed
Jun 19, 2026
…est_basic_capabilities_clean
…ion of more dirs in the future
…est_basic_capabilities_clean
Source: PR Agent Co-authored-by: cbasitodx <[email protected]>
anmarchenko
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds initial JavaScript/Jest support to
ddtest.This includes:
javascriptplatform detection and sanity checks for Node.js anddd-trace/ci/initNODE_OPTIONS=-r dd-trace/ci/initinjection fordd-trace-jsinstrumentationjestframework integration with default Jest test include/exclude patternsnode_modules/.bin/jest, custom command override, ornpx jestMotivation
ddtestcurrently supports Ruby workloads, but Test Optimization also needs JavaScript coverage. This PR starts that support by adding Jest integration, enablingddtestto plan and run JavaScript test files while automatically initializingdd-trace-js.How to test the change?
Run the focused package tests:
go test ./internal/platform ./internal/framework ./internal/planner ./internal/runnerRun the full test suite:
go test ./...